/**
 * 
 */
package com.speedydial.model;

import java.io.Serializable;
import java.util.Date;

/**
 * DTO to encapsulate the data sent and received 
 * 
 * All attributes should be public due to dalvik slow response with getters
 * in 2.2 and lower
 * 
 * @author joan
 *
 */
public class SMSContact implements Serializable {

	public String name;
	public String phone;
	/** Actual message
	 * TODO: think of renaming
	 *  */
	public String descr;
	public int ID;
	
	// added
	/** Defines either fastMove vs mediumFast */
	public String movementType;
	
	/** if active it will send sms */
	public boolean active;
	
	/** total messages sent */
	public int msgCount;
	
	// Date timestamped
	public Date contactCreated;
	public Date lastMsgSent;
	
	/**
	 * Completely empty constructor
	 */
	public SMSContact(){
		// it is always good to leave the empty constructor
		msgCount = 0;
	}
	/**
	 * 
	 * @param name
	 * @param p phone
	 * @param d description
	 * @param id unique id if needed
	 */
	public SMSContact(String name, String p, String d, int id, String type){
		this.name = name;
		this.phone = p;
		this.descr = d;
		this.ID = id;
		this.movementType = type;
	}
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getDescr() {
		return descr;
	}
	public void setDescr(String descr) {
		this.descr = descr;
	}
	public int getID() {
		return ID;
	}
	public void setID(int iD) {
		ID = iD;
	}
	
	
}
